package com.example.educationblockchain.model;

import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "DataBlock")
public class DataBlock {
    private String hash;

    private String dataBlock;

    public DataBlock() {
    }

    public DataBlock(String hash, String dataBlock) {
        this.hash = hash;
        this.dataBlock = dataBlock;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public String getDataBlock() {
        return dataBlock;
    }

    public void setDataBlock(String dataBlock) {
        this.dataBlock = dataBlock;
    }

    @Override
    public String toString() {
        return "DataBlock{" +
                "hash='" + hash + '\'' +
                ", dataBlock='" + dataBlock + '\'' +
                '}';
    }
}
